<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>

<body>
    <div id="app">
        {{message}}
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                message: "Hello Word!!!"
            }
        })
    </script>
    <div id="app-2">
        <span v-bind:title="message">
            鼠标悬停几秒钟查看此处动态绑定的提示信息！
        </span>
    </div>
    <script>
        var app2 = new Vue({
            el: '#app-2',
            data: {
                message: "页面加载于" + new Date().toLocaleString()
            }
        })
    </script>
    <div id="app-3">
        <p v-if="seen">看你妹啊</p>
        <p v-if="seen2">看你大爷</p>
    </div>
    <script>
        var app3 = new Vue({
            el: '#app-3',
            data: {
                seen: false,
                seen2: true
            }
        })
    </script>
    <div id="app-4">
        <ul>
            <li v-for="x in people">
                {{x.student}}
            </li>
        </ul>
    </div>
    <script>
        var app4 = new Vue({
            el:'#app-4',
            data:{
                people:[
                    {student:"隔壁老王"},
                    {student:"隔壁老谢"},
                    {student:"隔壁老林"}
                ]
            }
        })
    </script>
</body>

</html>